package chapter_six.text67_4;

import chapter_six.text67_4.Controller.ComputerController;
import chapter_six.text67_4.bean.Computer;
import chapter_six.text67_4.builder.ComputerBuilder;
import chapter_six.text67_4.builder.LaptopBuilder;

/**
 * Data time:2021/9/27 16:09
 * StudentID:2019112118
 * Author:hgw
 * Description:
 */
public class Client {
    public static void main(String[] args) {
        ComputerBuilder cp;
        cp = new LaptopBuilder();
        ComputerController cc = new ComputerController();
        Computer computer;
        computer = cc.construct(cp);

        System.out.println(computer.getCpu());
        System.out.println(computer.getHardDisk());
        System.out.println(computer.getHost());
        System.out.println(computer.getMemory());
        System.out.println(computer.getMonitor());
    }
}
